
<style type="text/css">
.case_center samp{ font-family: '微软雅黑';}

</style>


<?php if($list){?>
 <div class="main">


    <ul class="case">
     
               <volist name="list" id="r"  key="k">
                   <?php $user = M('User')->where('id='.$r['userid'])->find(); ?>
                    <li>
                       <a href="index.php?g=Home&m=Case&a=show&id={$r.id}"> <img src="{$r.thumb_list}" class="caseimg" alt="" /></a>
                        
                  <div class="case_center">
                    
                    <div class="user"  >
                         <a href="index.php?m=User&a=index&id={$user.id}"><img src="{$user['avatar']}" alt=""  class="img"/></a>
                        <span>{$user['username']}</span>
                      <div class="find none" >
                        <div class="find_user">
                              <a href="index.php?m=User&a=index&id={$user.id}"><img src="{$user['avatar']}" alt=""  /></a>
                            <a class="a" href="index.php?g=user&m=Guestbookadd&a=add&designid={$r.userid}">找TA设计</a>
                        </div>
                         
                        <h4>设计师：{$user['username']}</h4>
                        <p>设计费用：<a class="samp"><YP:list name="Type" order="typeid" where="keyid=34" id="val" limit="50">
                            <?php echo $user['charge'] == $val['typeid'] ? $val['name'] : ''; ?>
                        </YP:list>/㎡</a></p>
                        <p>所在地：{$user['province']|jgarea=###} {$user['city']|jgarea=###}</p>
                      </div>
                    </div>
                    <h4>{$r['title']}</h4>
                   <p> {$r['describe']|str_cut=###,35}</p>
                     <samp>类型：
                         <YP:list name="Label" where="genre=17" id="v" limit="50">
                         <?php echo $r['itemType'] == $v['id'] ? $v['title'] : ''; ?>
                         </YP:list>
                         </samp>
                     <samp>风格
                         <YP:list name="Label" where="genre=21" id="v" limit="50">
                             <?php echo $r['style'] == $v['id'] ? $v['title'] : ''; ?>
                         </YP:list>
                     </samp><br />
                     <samp> 面积：{$r.itemArea}㎡</samp>
                     <samp> 造价：{$r.budget}元</samp>
                </div>
                 </li>
                </volist>


                    <div class="clear"></div>
     </ul>
     
<style>
.paging ul li{position: relative; right:25%}
.paging ul div{position: relative; right:25%}
</style>
        <ul class="paging" style=" height:30px; text-align:center">
            <ul style="position: relative; left:50%">
           <?php echo $pages;?>
           </ul>
        </ul>
</div>
<?php }else{?> 

<div class="main" style=" height:200px; font-size:24px; color:#999; text-align:center">


    <ul class="case" id="{}" style="margin-top:100px;">
     对不起，没有找到：{$seo_title}的相关结果
    </ul>
</div>


<?php }?>


<script>
//设计师
    $(".user").mouseover(function (){
        $(this).find('.find').css('display','block');
    });

    $(".user").mouseout(function (){
        $(this).find('.find').css('display','none');
    });




</script>                                                                                                                                                                                                                                                                                                